﻿using System.Collections.Generic;

namespace SecondLevelCachingExample.Models
{
    public class HomeViewModel
    { 
        public HomeViewModel(List<CustomerModel> customers, int cacheHits, int cacheMisses, int cacheAdds)
        {
            this.Customers = customers;
            this.CacheAdds = cacheAdds;
            this.CacheHits = cacheHits;
            this.CacheMisses = cacheMisses;
        }
  
        public List<CustomerModel> Customers { get; set; }
        public string SearchTerm { get; set; }
        public int CacheHits { get; private set; }
        public int CacheMisses{ get; private set; }
        public int CacheAdds { get; private set; }
    }
}